/**
 * <p>Title: ServiceZMCEH0.java</p>
 * <p>Description: </p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author 张志芳
 * @version 1.0
 * <pre>Histroy:
 *          2012-1-19 下午04:29:12  张志芳  Create
 *</pre>
 */
package com.baosight.sczx.zm.ce.service;

import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.ep.ServiceEPBase;
import com.baosight.sczx.zm.ce.domain.ZMCEEquipmentRunRecord;

/**
 * 设备运行记录
 * <p>Title: ServiceZMCEH0.java</p>
 * <p>Description: </p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author 张志芳
 * @version 1.0
 * <pre>Histroy:
 *          2012-1-19 下午04:29:12  张志芳  Create
 *</pre>
 */
public class ServiceZMCEH0 extends ServiceEPBase {

	/**
	 * <p>Function: initLoad</p>
	 * <p>Description: </p>
	 * <p>return value: ServiceZMCEU0</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2012-1-16下午02:43:48 张志芳 
	 * </p>
	 *
	*/
	@Override
	public EiInfo initLoad(EiInfo inInfo) {
		inInfo.addBlock(EiConstant.resultBlock).set("showCount", "true");//如果不加这个，翻页的统计和显示是错误的
		EiInfo outInfo = this.query(inInfo);
		return outInfo;
	}

	/**
	 * <p>Function: query</p>
	 * <p>Description: </p>
	 * <p>return value: ServiceZMCEU0</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2012-1-16下午02:43:48 张志芳 
	 * </p>
	 *
	*/
	@Override
	public EiInfo query(EiInfo inInfo) {			
		EiInfo outInfo = super.query(inInfo, "ZMCEEquipmentRunRecord.queryAll", new ZMCEEquipmentRunRecord());		
		return outInfo;
	}
}
